package com.ice.cloud.hotelManagement.controller;

import com.ice.cloud.comm.api.PayApi;
import com.ice.cloud.comm.dto.FeeDeductionDTO;
import com.ice.cloud.comm.resp.R;
import com.ice.cloud.comm.sentinelapi.SentinelApi;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hotelOrder")
public class SentinelHotelOrderController {

    @Resource
    SentinelApi sentinelApi;
    @PostMapping("/oder100")
    public R oder100(@RequestParam("id") Integer id) {
        R<String> r =sentinelApi.feeDeductionSentinel(id,100D);
        return r;
    }
}
